(function($){
	Person = Backbone.Model.extend({
		defaults: {
			name: "George",
			age: 0,
			children: []
		},
		initialize: function(){
			console.log("Person initialized!");
			this.bind("change:name", function() {
				var name = this.get("name");
				console.log("Change name to: " + name);
			});
		},
		addChild: function(childName) {
			var childrenArray = this.get("children");
			childrenArray.push(childName);
			this.set({children: childrenArray});
		},
		rename: function(newName) {
			this.set({name: newName});
		}
	});

	window.person = new Person({name: "Jackie", age: 38});
	person.addChild("Joe");
	person.rename("Jimmy");
	//console.log(person);
})(jQuery);